<template>
  <div>
    <div class="title">周末去哪儿</div>
    <router-link to='/detail' >
    <div class="item border-bottom" v-for="item in weekendList" :key="item.id">
      <img class="item-img" :src="item.imgUrl">
      <div class="item-content">
        <p class="item-title">{{item.title}}</p>
        <p class="item-desc">{{item.desc}}</p>
      </div>
    </div>
    </router-link>
  </div>
</template>
<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  },
  data () {
    // 模拟数据
    return {
    }
  }
}
</script>
<style lang="stylus" scoped>
.title
  background: #eee
  line-height: .8rem
  text-indent: .2rem
.item
  height:0
  width: 100%
  margin-bottom: 60%
  .item-img
    overflow hidden
    width 100%
  .item-content
    min-width: 0
    .item-title
      font-size: .32rem
      line-height: .54rem
      padding: .1rem
      text-overflow: ellipsis
      overflow hidden
      white-space: nowrap
    .item-desc
      color: #999
      line-height: .2rem
      padding: .1rem
      text-overflow: ellipsis
      overflow hidden
      white-space: nowrap
</style>
